<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
body,ul,ol{padding:0;margin:0;}
li{ list-style:none;}
img{border:0;}
#box{width:470px; height:150px;margin:30px auto; overflow:hidden; position:relative;}
ul{	width:470px; position:absolute;left:0;top:0;z-index:1}
ul li{width:470px; display:none; position:absolute;left:0;top:0; filter:alpha(opacity=0);opacity:0}
ol{z-index:2;width:120px; position:absolute;right:10px; bottom:10px;}
ol li{width:20px; height:20px; float:left; background:#fff;color:#f60; line-height:20px; text-align:center;margin:0 2px; display:inline; cursor:pointer;}
ol li.active{ background:#f60;color:#fff;}

</style>
<script src="move.js"></script>
<script>
window.onload=function(){
	var oUl=document.getElementsByTagName('ul')[0];
	var aImg=oUl.getElementsByTagName('li');
	var oOl=document.getElementsByTagName('ol')[0];
	var aBtn=oOl.getElementsByTagName('li');
	
	for(var i=0;i<aBtn.length;i++){
		aBtn[i].index=i;
		aBtn[i].onmouseover=function(){
			for(var i=0;i<aBtn.length;i++){
				aBtn[i].className='';
				startMove(aImg[i],{opacity:0},function(){
					this.style.display='none';	
				})
			}
			this.className='active';	
			aImg[this.index].style.display='block';
			startMove(aImg[this.index],{opacity:100})
		};	
	};	
};
</script>
</head>

<body>
<div id="box">
	<ul>
    	<li style="display:block; filter:alpha(opacity=100);opacity:1"><a href="#"><img src="images/1.jpg" width="470" height="150" /></a></li>
    	<li><a href="#"><img src="images/2.jpg" width="470" height="150" /></a></li>
    	<li><a href="#"><img src="images/3.jpg" width="470" height="150" /></a></li>
    	<li><a href="#"><img src="images/4.jpg" width="470" height="150" /></a></li>
    	<li><a href="#"><img src="images/5.jpg" width="470" height="150" /></a></li>
    </ul>
    <ol>
    	<li class="active">1</li>
    	<li>2</li>
    	<li>3</li>
    	<li>4</li>
    	<li>5</li>
    </ol>
</div>	
</body>
</html>
